package br.net.woodstock.tickettoride.api.client;

import java.io.Serializable;
import java.util.Date;

public class TicketRequest implements Serializable {

	private static final long	serialVersionUID	= 1694013530737567787L;

	private TicketSession		session;

	private String[]			toApplications;

	private byte[]				data;

	private Date				expires;

	private byte[]				signature;

	public TicketRequest() {
		super();
	}

	public TicketRequest(final TicketSession session, final String[] toApplications, final byte[] data, final Date expires) {
		super();
		this.session = session;
		this.toApplications = toApplications;
		this.data = data;
		this.expires = expires;
	}

	public TicketRequest(final TicketSession session, final String[] toApplications, final byte[] data, final Date expires, final byte[] signature) {
		super();
		this.session = session;
		this.toApplications = toApplications;
		this.data = data;
		this.expires = expires;
		this.signature = signature;
	}

	public TicketSession getSession() {
		return this.session;
	}

	public void setSession(final TicketSession session) {
		this.session = session;
	}

	public String[] getToApplications() {
		return this.toApplications;
	}

	public void setToApplications(final String[] toApplications) {
		this.toApplications = toApplications;
	}

	public byte[] getData() {
		return this.data;
	}

	public void setData(final byte[] data) {
		this.data = data;
	}

	public Date getExpires() {
		return this.expires;
	}

	public void setExpires(final Date expires) {
		this.expires = expires;
	}

	public byte[] getSignature() {
		return this.signature;
	}

	public void setSignature(final byte[] signature) {
		this.signature = signature;
	}

}
